package cn.wqk.rrtf.service;

import cn.wqk.rrtf.pojo.Grade;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Service;

@Service
public interface GradeService {
    /**
     * 新增等级
     * @param grade
     * @return
     */
    int insertGrade(Grade grade);

    /**
     * 删除等级
     * @param gradeId
     * @return
     */
    int deleteGrade(@Param("gradeId") Integer gradeId);

    /**
     * 更新等级信息
     * @param grade
     * @return
     */
    int updatGrade(Grade grade);

    /**
     * 根据会员编号查询会员等级
     * @param memberId
     * @return
     */
    Grade selectGradeByMemberId(@Param("memberId") Integer memberId);

}
